
<!DOCTYPE html>
<html>
<head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>

<link rel="stylesheet" type="text/css" href="theme/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="theme/default/css/common.css">
<script src="theme/default/Js/Common.js"></script>
<script src="theme/default/Js/jquery-3.0.0.min.js"></script>
<script src="theme/default/js/artDialog.js?skin=blue"></script>
<link rel="stylesheet" type="text/css" href="include/webupload/webuploader.css">
<script src="include/webupload/webuploader.min.js"></script>
<script src="include/webupload/uploads.js"></script>
<link rel='stylesheet' type="text/css" href='theme/desktop/css/font-awesome.min.css'>

</head>
<body>
<div class="cssout">
  <div class="MenuboxS">
    <ul>
      <li ><a href="user_bumen.html?sstype=bumen"> <i class="fa fa-gears"></i> 部门设置</a></li>
      <li ><a href="user_quanxian.html?sstype=quanxian"> <i class="fa fa-info-circle"></i> 职位&权限</a></li>
      <!--<li ><span><a href="?sstype=xiaozu">小组设置</a></dd></li>-->
      <li class="hover"><a href="user.html?sstype=userlist"> <i class="fa fa-user"></i> 员工列表</a></li>
      <li class="btn_new" >
        <dd class="isin"><a class="open-app" data-width="900" data-height="450" title="新增员工" href="user_add.html?action=User&stype=add&LaiLu=">新增员工</a></span> 
      </li>
    </ul>
    <div style=" min-width:250px; float:left;background:none; padding-left:5px; margin-top:5px;">
      
    </div>
    <div class="clear"></div>
  </div>
</div>

<ul class="xhing">
  
  
<!----------------------------------------搜索开始---------------------------------------->
<!----------------------------------------搜索开始---------------------------------------->
<div class="cssout topNavsou">
 <div class="cssin">
<form class="layui-form" name="searchForm" action="?saction=ssdetail&LaiLu=" method="post">
  快速搜索：
  <input name="S201_MHsou" id="S201_MHsou" type="text" class="bor int mhsouint" size="40" value='' placeholder="账号、姓名、手机号码">
  <input type="submit" name="Submit" class="btn1 btnsou" value="立即搜索">
</form>
<div class="clear"></div>
</div>
</div>
<div class="bgDiv"></div>
<div class="cssout rightNav"> 
  
  <form class="layui-form" name="searchForm" action="?saction=ssdetail&LaiLu=" method="post">
    <div class="cssin" id="ss">
      <ul>
        
        <!--line-->
        <li class="w10 bg tr"><dd class="isin"> 姓名 </li>
        <li class="w23"><dd class="isin">
          <input name="uname" type="text" class="bor int" id="uname" size="30" value=''></dd></li>
        <li class="w10 bg tr"><dd class="isin"> 性别 </li>
        <li class="w23"><dd class="isin">
          <select name="usex"  class="bor int" value=''>
            <option value="">请选择</option>
            <option value="1" >男</option>
            <option value="0" >女</option>
          </select></dd></li>
        <li class="w10 bg tr"><dd class="isin">手机号码</dd></li>
        <li class="w24"><dd class="isin"><input name="umobile" type="text" class="bor int" id="umobile" size="30" value=''></dd></li>
        <!--line--> 
        
        <!--line-->
        <li class="w10 bg tr"><dd class="isin"> 生日 </li>
        <li class="w23"><dd class="isin">
          <input name="ubirthdayBegin" type="text" maxlength="10" id="ubirthdayBegin" class="int Wdate" size="15" onFocus="WdatePicker()" value=''/>
          ~
          <input name="ubirthdayEnd" type="text" maxlength="10" id="ubirthdayEnd" class="int Wdate" size="15" onFocus="WdatePicker()" value=''/>
        </dd></li>
        <li class="w10 bg tr"><dd class="isin"> 所在部门</dd></li>
        <li class="w23"><dd class="isin">
          <select name='ugroup' id='ugroup' class='int'><option value="">请选择</option><option value="1">总经办</option><option value="2">财务部</option><option value="3">业务一部</option><option value="4">业务二部</option><option value="5">渠道招商部</option><option value="6">客服部</option></select></dd></li>
        <li class="w10 bg tr"><dd class="isin"> 是否离职 </li>
        <li class="w24"><dd class="isin">
          <select name="ulzzts"  class="bor int" value=''>
            <option value="">请选择</option>
            <option value="0" >在职</option>            
            <option value="1" >已离职</option>
          </select>
          </dd>
        </li>
        <!--line-->
        
        <li class="ss"><dd class="isin">
          <input type="submit" name="Submit" id="ss_button" class="btn2 btnsous" style=" top:50px;right:10px;" value="立即搜索">
          <input type="button" class="btn2 btnguanb" value="清空条件" onClick=window.location.href="?saction=ksn&LaiLu=" /></dd></li>
          <div class="clear"></div>
      </ul>
    </div>
  </form>
  
</div>
  <div class="searchss"><a id="zkgb"><i class='ficon fa-search'></i>展开高级搜索</a></div>
  <script>
var ssid=2
ztm=getCookie("ztm"+ssid);if (ztm==1){SSZK()}else{SSGB()}
$(function(){$("#zkgb").click(function(event){ztm=getCookie("ztm"+ssid);if (ztm==1){SSGB()}else{SSZK()} })});
function SSZK(){
$(".topNavsou").css("display","none")
$(".rightNav").css("display","block")
$("#zkgb").html("<i class='ficon fa-search-minus'></i>关闭高级搜索")
setCookie("ztm"+ssid,1); }
function SSGB(){
$(".topNavsou").css("display","block")
$(".rightNav").css("display","none")
$("#zkgb").html("<i class='ficon fa-search'></i>展开高级搜索")
setCookie("ztm"+ssid,0); }
var sou_hei=$(".cssout:first").height()+45
$("#ss_suggest").css("top",sou_hei+"px")
$.each($(".cssout:first .MenuboxS ul li a"),function(i,n){
    var $href = $(this).attr("href");
    $(this).attr("href",$href+"&saction=ksn");
});
</script>
  <div class="cssout">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" CLASS="table_1">
      <tr class="tr_t">
        <td width="60" nowrap class="td_l_c">编号</td>
        <td width="180" nowrap class="td_l_l">帐号</td>
        <td width="80" nowrap class="td_l_c">姓名</td>
        <td width="80" nowrap class="td_l_c">部门</td>
        <!--<td width="100" class="td_l_c">小组</td>-->
        <td width="80" nowrap class="td_l_c">职位</td>
        <td width="80" nowrap class="td_l_c">员工提成</td>
        <td width="80" nowrap class="td_l_c">状态</td>
        <td width="80" nowrap class="td_l_c">职位&权限</td>
        <td width="80" nowrap class="td_l_c">管理范围</td>
        <td width="80" nowrap class="td_l_c">管理</td>
      </tr>
      
      <tr class="tr" >
        <td nowrap class="td_l_c">1</td>
        <td nowrap class="td_l_l">admin</td>
        <td nowrap class="td_l_c">超级管理员</td>
        <td nowrap class="td_l_c">总经办</td>
        <!--<td class="td_l_c">0</td>-->
        <td nowrap class="td_l_c">超级管理员</td>
        <td class="td_l_c">
		
		
		
        
          —
          
          
          
          </td>
        <td nowrap class="td_l_c">
          正常
          </td>
        <td nowrap class="td_l_c">
          全部
          </td>
        <td nowrap class="td_l_c">
          全部
          </td>
        <td nowrap="nowrap" class="td_l_c">
          <input type="button" class="btnx btnxiug" style="background:#757777;" value="超级管理员" title="超级管理员" />
          </td>
      </tr>
      <script>function User_Quxnain1(Dourl) {$.dialog.open(Dourl, {title: '用户权限', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_Fanwei1(Dourl) {$.dialog.open(Dourl, {title: '管理范围', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_InfoEdit1(Dourl) {$.dialog.open(Dourl, {title: '编辑账号', width: 1090,height: 500, fixed: true}); };</script>
      
      <tr class="tr" >
        <td nowrap class="td_l_c">3</td>
        <td nowrap class="td_l_l">qq123456</td>
        <td nowrap class="td_l_c">测试</td>
        <td nowrap class="td_l_c">业务一部</td>
        <!--<td class="td_l_c">0</td>-->
        <td nowrap class="td_l_c">超级管理员</td>
        <td class="td_l_c">
		
		
		
          <span class="col_red">0</span> %
          
          
          
          </td>
        <td nowrap class="td_l_c">
          <script>
function userjy3(){
	

ztset=$(".shcss3").val()
if(ztset=="正常"){
userjy=1
}else if(ztset=="已禁用"){
userjy=0
}
	
$.post("inc.userjy.asp",{uid:"3",userjy:userjy},
  function(data){ 
    if(data=="1")
    {  
		$(".shcss3").addClass('btn_sh3');
		$(".shcss3").removeClass('btn_sh1');
		$(".shcss3").val("已禁用")
    }
    else if(data=="0"){
		$(".shcss3").addClass('btn_sh1');
		$(".shcss3").removeClass('btn_sh3');
		$(".shcss3").val("正常")
    }
	else if(data=="111"){
    alert("已超过最大员工数限制，无法启用账号！");
	}
  });
}
</script>
          
          <div class="caiwush">
            
            <input onclick='userjy3()' type="button" class="btn1 btn_sh1 shcss3" value="正常" >
            
          </div>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnquanxian" value="用户权限" title="用户权限"  onclick='User_Quxnain3("user_edit.html?sstype=Level&Id=3&LaiLu=")'>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnfanwei" value="管理范围" title="管理范围"  onclick='User_Fanwei3("user_edit.html?sstype=Manage&Id=3&LaiLu=")'>
          </td>
        <td nowrap="nowrap" class="td_l_c">
          <input type="button" class="btnx btnxiug" value="修改" title="修改"  onclick='User_InfoEdit3("user_edit.html?action=User&stype=Edit&Id=3&LaiLu=")' />
          <input type="button" class="btnx btnshanc" value="删除" title="删除" onClick="if(confirm(' 你真的要删除吗?\n 此操作不可恢复！\n 建议先将向客户资料转移给其他人！'))
{location.href='?action=delete&uId=3';};" />
          </td>
      </tr>
      <script>function User_Quxnain3(Dourl) {$.dialog.open(Dourl, {title: '用户权限', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_Fanwei3(Dourl) {$.dialog.open(Dourl, {title: '管理范围', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_InfoEdit3(Dourl) {$.dialog.open(Dourl, {title: '编辑账号', width: 1090,height: 500, fixed: true}); };</script>
      
      <tr class="tr" >
        <td nowrap class="td_l_c">4</td>
        <td nowrap class="td_l_l">111</td>
        <td nowrap class="td_l_c">111</td>
        <td nowrap class="td_l_c">业务一部</td>
        <!--<td class="td_l_c">0</td>-->
        <td nowrap class="td_l_c">销售员</td>
        <td class="td_l_c">
		
		
		
          <span class="col_red">0</span> %
          
          
          
          </td>
        <td nowrap class="td_l_c">
          <script>
function userjy4(){
	
ztset=$(".shcss4").val()
if(ztset=="正常"){
userjy=1
}else if(ztset=="已禁用"){
userjy=0
}
	
$.post("inc.userjy.asp",{uid:"4",userjy:userjy},
  function(data){ 
    if(data=="1")
    {  
		$(".shcss4").addClass('btn_sh3');
		$(".shcss4").removeClass('btn_sh1');
		$(".shcss4").val("已禁用")
    }
    else if(data=="0"){
		$(".shcss4").addClass('btn_sh1');
		$(".shcss4").removeClass('btn_sh3');
		$(".shcss4").val("正常")
    }
	else if(data=="111"){
    alert("已超过最大员工数限制，无法启用账号！");
	}
  });
}
</script>
          
          <div class="caiwush">
            
            <input onclick='userjy4()' type="button" class="btn1 btn_sh1 shcss4" value="正常" >
            
          </div>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnquanxian" value="用户权限" title="用户权限"  onclick='User_Quxnain4("user_edit.html?sstype=Level&Id=4&LaiLu=")'>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnfanwei" value="管理范围" title="管理范围"  onclick='User_Fanwei4("user_edit.html?sstype=Manage&Id=4&LaiLu=")'>
          </td>
        <td nowrap="nowrap" class="td_l_c">
          <input type="button" class="btnx btnxiug" value="修改" title="修改"  onclick='User_InfoEdit4("user_edit.html?Id=4&LaiLu=")' />
          <input type="button" class="btnx btnshanc" value="删除" title="删除" onClick="if(confirm(' 你真的要删除吗?\n 此操作不可恢复！\n 建议先将向客户资料转移给其他人！'))
{location.href='?action=delete&uId=4';};" />
          </td>
      </tr>
      <script>function User_Quxnain4(Dourl) {$.dialog.open(Dourl, {title: '用户权限', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_Fanwei4(Dourl) {$.dialog.open(Dourl, {title: '管理范围', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_InfoEdit4(Dourl) {$.dialog.open(Dourl, {title: '编辑账号', width: 1090,height: 500, fixed: true}); };</script>
      
      <tr class="tr" >
        <td nowrap class="td_l_c">5</td>
        <td nowrap class="td_l_l">aaaa</td>
        <td nowrap class="td_l_c">啊</td>
        <td nowrap class="td_l_c">业务一部</td>
        <!--<td class="td_l_c">0</td>-->
        <td nowrap class="td_l_c">销售经理</td>
        <td class="td_l_c">
		
		
		
          <span class="col_red">0</span> %
          
          
          
          </td>
        <td nowrap class="td_l_c">
          <script>
function userjy5(){
	
ztset=$(".shcss5").val()
if(ztset=="正常"){
userjy=1
}else if(ztset=="已禁用"){
userjy=0
}
	
$.post("inc.userjy.asp",{uid:"5",userjy:userjy},
  function(data){ 
    if(data=="1")
    {  
		$(".shcss5").addClass('btn_sh3');
		$(".shcss5").removeClass('btn_sh1');
		$(".shcss5").val("已禁用")
    }
    else if(data=="0"){
		$(".shcss5").addClass('btn_sh1');
		$(".shcss5").removeClass('btn_sh3');
		$(".shcss5").val("正常")
    }
	else if(data=="111"){
    alert("已超过最大员工数限制，无法启用账号！");
	}
  });
}
</script>
          
          <div class="caiwush">
            
            <input onclick='userjy5()' type="button" class="btn1 btn_sh1 shcss5" value="正常" >
            
          </div>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnquanxian" value="用户权限" title="用户权限"  onclick='User_Quxnain5("user_edit.html?sstype=Level&Id=5&LaiLu=")'>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnfanwei" value="管理范围" title="管理范围"  onclick='User_Fanwei5("user_edit.html?sstype=Manage&Id=5&LaiLu=")'>
          </td>
        <td nowrap="nowrap" class="td_l_c">
          <input type="button" class="btnx btnxiug" value="修改" title="修改"  onclick='User_InfoEdit5("user_edit.html?Id=5&LaiLu=")' />
          <input type="button" class="btnx btnshanc" value="删除" title="删除" onClick="if(confirm(' 你真的要删除吗?\n 此操作不可恢复！\n 建议先将向客户资料转移给其他人！'))
{location.href='?action=delete&uId=5';};" />
          </td>
      </tr>
      <script>function User_Quxnain5(Dourl) {$.dialog.open(Dourl, {title: '用户权限', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_Fanwei5(Dourl) {$.dialog.open(Dourl, {title: '管理范围', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_InfoEdit5(Dourl) {$.dialog.open(Dourl, {title: '编辑账号', width: 1090,height: 500, fixed: true}); };</script>
      
      <tr class="tr" >
        <td nowrap class="td_l_c">6</td>
        <td nowrap class="td_l_l">123456</td>
        <td nowrap class="td_l_c">666</td>
        <td nowrap class="td_l_c">客服部</td>
        <!--<td class="td_l_c">0</td>-->
        <td nowrap class="td_l_c">总经理</td>
        <td class="td_l_c">
		
		
		
          <span class="col_red">15</span> %
          
          
          
          </td>
        <td nowrap class="td_l_c">
          <script>
function userjy6(){
	
ztset=$(".shcss6").val()
if(ztset=="正常"){
userjy=1
}else if(ztset=="已禁用"){
userjy=0
}
	
$.post("inc.userjy.asp",{uid:"6",userjy:userjy},
  function(data){ 
    if(data=="1")
    {  
		$(".shcss6").addClass('btn_sh3');
		$(".shcss6").removeClass('btn_sh1');
		$(".shcss6").val("已禁用")
    }
    else if(data=="0"){
		$(".shcss6").addClass('btn_sh1');
		$(".shcss6").removeClass('btn_sh3');
		$(".shcss6").val("正常")
    }
	else if(data=="111"){
    alert("已超过最大员工数限制，无法启用账号！");
	}
  });
}
</script>
          
          <div class="caiwush">
            
            <input onclick='userjy6()' type="button" class="btn1 btn_sh1 shcss6" value="正常" >
            
          </div>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnquanxian" value="用户权限" title="用户权限"  onclick='User_Quxnain6("user_edit.html?sstype=Level&Id=6&LaiLu=")'>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnfanwei" value="管理范围" title="管理范围"  onclick='User_Fanwei6("user_edit.html?sstype=Manage&Id=6&LaiLu=")'>
          </td>
        <td nowrap="nowrap" class="td_l_c">
          <input type="button" class="btnx btnxiug" value="修改" title="修改"  onclick='User_InfoEdit6("user_edit.html?Id=6&LaiLu=")' />
          <input type="button" class="btnx btnshanc" value="删除" title="删除" onClick="if(confirm(' 你真的要删除吗?\n 此操作不可恢复！\n 建议先将向客户资料转移给其他人！'))
{location.href='?action=delete&uId=6';};" />
          </td>
      </tr>
      <script>function User_Quxnain6(Dourl) {$.dialog.open(Dourl, {title: '用户权限', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_Fanwei6(Dourl) {$.dialog.open(Dourl, {title: '管理范围', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_InfoEdit6(Dourl) {$.dialog.open(Dourl, {title: '编辑账号', width: 1090,height: 500, fixed: true}); };</script>
      
      <tr class="tr" >
        <td nowrap class="td_l_c">7</td>
        <td nowrap class="td_l_l">11352469</td>
        <td nowrap class="td_l_c">596874656</td>
        <td nowrap class="td_l_c">客服部</td>
        <!--<td class="td_l_c">0</td>-->
        <td nowrap class="td_l_c">总经理</td>
        <td class="td_l_c">
		
		
		
          <span class="col_red">15</span> %
          
          
          
          </td>
        <td nowrap class="td_l_c">
          <script>
function userjy7(){
	
ztset=$(".shcss7").val()
if(ztset=="正常"){
userjy=1
}else if(ztset=="已禁用"){
userjy=0
}
	
$.post("inc.userjy.asp",{uid:"7",userjy:userjy},
  function(data){ 
    if(data=="1")
    {  
		$(".shcss7").addClass('btn_sh3');
		$(".shcss7").removeClass('btn_sh1');
		$(".shcss7").val("已禁用")
    }
    else if(data=="0"){
		$(".shcss7").addClass('btn_sh1');
		$(".shcss7").removeClass('btn_sh3');
		$(".shcss7").val("正常")
    }
	else if(data=="111"){
    alert("已超过最大员工数限制，无法启用账号！");
	}
  });
}
</script>
          
          <div class="caiwush">
            
            <input onclick='userjy7()' type="button" class="btn1 btn_sh1 shcss7" value="正常" >
            
          </div>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnquanxian" value="用户权限" title="用户权限"  onclick='User_Quxnain7("user_edit.html?sstype=Level&Id=7&LaiLu=")'>
          </td>
        <td nowrap class="td_l_c">
          <input type="button" class="btn1 btnfanwei" value="管理范围" title="管理范围"  onclick='User_Fanwei7("user_edit.html?sstype=Manage&Id=7&LaiLu=")'>
          </td>
        <td nowrap="nowrap" class="td_l_c">
          <input type="button" class="btnx btnxiug" value="修改" title="修改"  onclick='User_InfoEdit7("user_edit.html?Id=7&LaiLu=")' />
          <input type="button" class="btnx btnshanc" value="删除" title="删除" onClick="if(confirm(' 你真的要删除吗?\n 此操作不可恢复！\n 建议先将向客户资料转移给其他人！'))
{location.href='?action=delete&uId=7';};" />
          </td>
      </tr>
      <script>function User_Quxnain7(Dourl) {$.dialog.open(Dourl, {title: '用户权限', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_Fanwei7(Dourl) {$.dialog.open(Dourl, {title: '管理范围', width: 1090,height: 500, fixed: true}); };</script> 
      <script>function User_InfoEdit7(Dourl) {$.dialog.open(Dourl, {title: '编辑账号', width: 1090,height: 500, fixed: true}); };</script>
      
    </table>
  </div>
  <div class="h50b"></div>
  <div class="clear"></div>
  <div class="fixed_bg"> <!--分页代码开始-->
    <div class="pagepostion"> <ul class="pagination"><li class="first disabled"><a href='javascript:void(0);'>6 条记录 1/1页</a></li><li class="next disabled"><a href='user.asp?PN=1'>首页</a></li><li class="active"><a href='javascript:void(0);'>1</a></li><li class="next disabled"><a href='user.asp?PN=1'>尾页</a></li><script language='javascript'>function getValue(obj){if (document.getElementById("geturl").value!="") {location.href="user.asp?PN="+escape(document.getElementById("geturl").value)+""}}</script><input class="pagenum" id="geturl" value="1"><li class="last"><a href='javascript:void(0);' onClick="getValue(geturl.value)">跳转</a></li></ul> </div>
    <!--分页代码结束--> 
    
  </div>
</ul>

<script>function User_add(Dourl) {$.dialog.open(Dourl, {title: '新增员工', width: 1000, height: 500,fixed: true}); };</script> 
<script src="theme/default/WdatePicker.js"></script> 
<script src="theme/layui/layui.js"></script> 
<script src="theme/desktop/js/common.js"></script>

<script>
/*弹出窗口封装代码*/
$(".open-app").on("click",function(){
	var width = $(this).data("width")?$(this).data("width"):900,//获得宽度
	height = $(this).data("height")?$(this).data("height"):400//获得高度
	url = $(this).attr("href")//获得打开URL
	title = $(this).attr("title");//获得标题	
	$.dialog.open(url, {title: title, width:width,height:height, fixed: true});
	return false;	
})
</script>

</body>
</html>
